//
//  Budget.m
//  预购清单
//
//  Created by liujianlong on 2022/10/17.
//

#import "Budget.h"

@implementation Budget
+ (NSArray *)bg_unionPrimaryKeys
{
    return @[@"year",@"month",@"account"];
}
-(NSMutableArray<Prepay *> *)array{
    if (!_array) {
        _array = [NSMutableArray array];
    }
    return _array;
}
-(NSString *)year{
    if (!_year) {
        _year = [NSString stringWithFormat:@"%d",(int)[NSDate dateOfStamp:self.stamp].year];
    }
    return _year;
}
-(NSString *)month{
    if (!_month) {
        _month = [NSString stringWithFormat:@"%d",(int)[NSDate dateOfStamp:self.stamp].month];
    }
    return _month;
}
@end
